package com.itheima.edu.info.manager.day13;

import java.util.Random;
import java.util.concurrent.Callable;

public class CallableTest implements Callable<String>{

    @Override
    public  String  call() throws Exception {
        Random r=new Random();
        for (int i = 0; i < 1000; i++) {
            Thread.sleep(r.nextInt(100));
            System.out.println(Thread.currentThread().getName()+"~"+i);
        }
        return "完成~~~";
    }
}
